/*
 * @Author: hechengfei h349187021@163.com
 * @Date: 2022-08-10 15:44:39
 * @LastEditors: hechengfei h349187021@163.com
<<<<<<< HEAD
 * @LastEditTime: 2022-08-23 15:16:37
=======
 * @LastEditTime: 2022-08-15 10:08:29
>>>>>>> 7b24a37e6d18fe8311125d02d96558fbd086f24b
 * @FilePath: \xiangmu\src\components\contractmanagement\GetPages.jsx
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import React from 'react'
import { Pagination, ConfigProvider } from 'antd';
import zhCN from 'antd/lib/locale/zh_CN'
import '../../assets/css/contract/GetPages.css'
import { inject, observer } from 'mobx-react';
function GetPages(props) {
    return (
        <ConfigProvider locale={zhCN}>
            <Pagination
                className='GetPages'
                total={props.total}
                onChange={(page, pagesize) => props.onPageChange(page, pagesize)}
                showSizeChanger
                showQuickJumper
                showTotal={(total) => `总共 ${total} 条`}
            />
        </ConfigProvider>

    )
}
export default inject('contractStore')(observer(GetPages))